<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div {
            width: 700px;
            height: 40px;
            border: 3px rgb(209, 171, 87) solid;
            margin: auto;
        }

        span {
            /* 设置鼠标样式为手抓形状 */
            cursor: pointer;
            color: rgb(209, 171, 87);
            /* 转换为行内快元素 */
            display: inline-block;
            width: 30%;
            height: 40px;
            line-height: 40px;
            text-align: center;
        }

        div span:hover {
            background: rgb(209, 171, 87);
            color: #fff;
            /* 过度效果 */
            transition: all .5s;
            /* 顺时针旋转360deg */
            transform: rotate(360deg);
        }
    </style>
</head>

<body>
    <div>
        <span>西点培训</span>
        <span>蛋糕甜点</span>
        <span>咖啡饮品</span>
    </div>
</body>

</html>